
#ifndef _FAN_H_
#define _FAN_H_

#include <cstdlib>
#include <iostream>

#include "SDL.h"
#include "SDL_opengl.h"
#include "common.h"

#include "BaseShape.h"

__BEGIN_NAMESPACE_DECL_

class Fan : public BaseShape
{
    public:
        // Constructor
        Fan(int segments = 10, int blades = 5);

        // Destructor
        virtual ~Fan() { } 

        // Interface implementation for Shape superclass
        virtual void draw ();

        void setAngleOfRotation (int angle) { _angleOfRotation = angle; }
        int  getAngleOfRotation () const    { return _angleOfRotation;  }

    protected:
        int _segments;   // Number of segments in the fan base
        int _blades;     // Number of blades on the fan
        int _angleOfRotation;  // current angle of rotation for fan
};

__END_NAMESPACE_DECL_

#endif
